﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Se7en.Admin.Common;

namespace Se7en.Admin.Web
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void btnSignOut_Click(object sender, EventArgs e)
        {
            AdminPageBase page = this.Page as AdminPageBase;
            if (page != null)
            {
                page.SignOut();
            }
        }

        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
            AdminPageBase page = this.Page as AdminPageBase;
            if (page != null && page.UserLogin != null)
            {
                lblName.Text = page.UserLogin.FirstName;
            }
        }
    }
}
